<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:83:"/www/wwwroot/e.tikshop.asia/public/../application/index/view/cms/archives/post.html";i:1637113684;s:70:"/www/wwwroot/e.tikshop.asia/application/index/view/layout/default.html";i:1725591948;s:67:"/www/wwwroot/e.tikshop.asia/application/index/view/common/meta.html";i:1725591948;s:70:"/www/wwwroot/e.tikshop.asia/application/index/view/common/sidenav.html";i:1725591948;s:69:"/www/wwwroot/e.tikshop.asia/application/index/view/common/script.html";i:1725591948;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo htmlentities((isset($title) && ($title !== '')?$title:'') ?? ''); ?> – <?php echo htmlentities($site['name'] ?? ''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<?php if(isset($keywords)): ?>
<meta name="keywords" content="<?php echo htmlentities($keywords ?? ''); ?>">
<?php endif; if(isset($description)): ?>
<meta name="description" content="<?php echo htmlentities($description ?? ''); ?>">
<?php endif; ?>

<link rel="shortcut icon" href="/assets/img/favicon.ico" />

<link href="/assets/css/frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config: <?php echo json_encode($config ?? ''); ?>
    };
</script>

        <link href="/assets/css/user.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
    </head>

    <body>

        <nav class="navbar navbar-white navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#header-navbar">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="<?php echo url('/'); ?>"><?php echo htmlentities($site['name'] ?? ''); ?></a>
                </div>
                <div class="collapse navbar-collapse" id="header-navbar">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="<?php echo url('/'); ?>"><?php echo __('Home'); ?></a></li>
                        <li class="dropdown">
                            <?php if($user): ?>
                            <a href="<?php echo url('user/index'); ?>" class="dropdown-toggle" data-toggle="dropdown">
                                <span class="avatar-img"><img src="<?php echo cdnurl(htmlentities($user['avatar'] ?? '') ?? ''); ?>" alt=""></span>
                                <span class="visible-xs-inline-block" style="padding:5px;"><?php echo $user['nickname']; ?> <b class="caret"></b></span>
                            </a>
                            <?php else: ?>
                            <a href="<?php echo url('user/index'); ?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo __('Member center'); ?> <b class="caret"></b></a>
                            <?php endif; ?>
                            <ul class="dropdown-menu">
                                <?php if($user): ?>
                                <li><a href="<?php echo url('user/index'); ?>"><i class="fa fa-user-circle fa-fw"></i><?php echo __('User center'); ?></a></li>
                                <li><a href="<?php echo url('user/profile'); ?>"><i class="fa fa-user-o fa-fw"></i><?php echo __('Profile'); ?></a></li>
                                <li><a href="<?php echo url('user/changepwd'); ?>"><i class="fa fa-key fa-fw"></i><?php echo __('Change password'); ?></a></li>
                                <li><a href="<?php echo url('user/logout'); ?>"><i class="fa fa-sign-out fa-fw"></i><?php echo __('Sign out'); ?></a></li>
                                <?php else: ?>
                                <li><a href="<?php echo url('user/login'); ?>"><i class="fa fa-sign-in fa-fw"></i> <?php echo __('Sign in'); ?></a></li>
                                <li><a href="<?php echo url('user/register'); ?>"><i class="fa fa-user-o fa-fw"></i> <?php echo __('Sign up'); ?></a></li>
                                <?php endif; ?>

                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>

        <main class="content">
            <style>
    .panel-post {
        position: relative;
    }

    .btn-post {
        position: absolute;
        right: 0;
        bottom: 10px;
    }

    #post-form .panel-default {
        padding: 0;
    }
</style>
<style>
    .autocomplete-searchtitle {
        padding: 0px 8px;
        display: none;
    }

    .autocomplete-searchtitle .media {
        border-bottom: 1px solid #eee;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .autocomplete-searchtitle .media:last-child {
        border-bottom: 0;
    }

    .autocomplete-searchtitle .media:hover {
        background: #fefefe;
    }
</style>

<script type="text/html" id="headertpl">
    <div class="px-2">
        <div class="row">
            <div class="col-12">
                <div class="alert" style="border-radius: 0;color: #0084ff; background: rgba(0, 132, 255, 0.1);margin-bottom:0;">
                    为你找到以下几篇相似文章
                </div>
            </div>
        </div>
    </div>
</script>
<script type="text/html" id="itemtpl">
    <div class="media">
        <a class="" href="<%=item.url%>" target="_blank">
            <div class="media-left">
                <img src="<%=item.image%>" style="width: 50px; height: 50px;">
            </div>

            <div class="media-body">
                <h4 class="media-heading"><%=#replace(item.title)%></h4>
                <div class="text-muted">发布时间：<%=item.create_date%></div>
            </div>
        </a>
    </div>
</script>

<div class="container mt-20">
    <div id="content-container">
        <div class="row">
            <div class="col-md-3">
                <div class="sidebar-toggle"><i class="fa fa-bars"></i></div>
<div class="sidenav" id="sidebar-nav">
    <?php echo hook('user_sidenav_before'); ?>
    <ul class="list-group">
        <li class="list-group-heading"><?php echo __('Member center'); ?></li>
        <li class="list-group-item <?php echo check_nav_active('user/index'); ?>"> <a href="<?php echo url('user/index'); ?>"><i class="fa fa-user-circle fa-fw"></i> <?php echo __('User center'); ?></a> </li>
        <li class="list-group-item <?php echo check_nav_active('user/profile'); ?>"> <a href="<?php echo url('user/profile'); ?>"><i class="fa fa-user-o fa-fw"></i> <?php echo __('Profile'); ?></a> </li>
        <li class="list-group-item <?php echo check_nav_active('user/changepwd'); ?>"> <a href="<?php echo url('user/changepwd'); ?>"><i class="fa fa-key fa-fw"></i> <?php echo __('Change password'); ?></a> </li>
        <li class="list-group-item <?php echo check_nav_active('user/logout'); ?>"> <a href="<?php echo url('user/logout'); ?>"><i class="fa fa-sign-out fa-fw"></i> <?php echo __('Sign out'); ?></a> </li>
    </ul>
    <?php echo hook('user_sidenav_after'); ?>
</div>

            </div>
            <div class="col-md-9">
                <div class="panel panel-default panel-user">
                    <div class="panel-body">
                        <?php if($archives && $archives['status']=='normal'): ?>
                        <div class="alert alert-danger-light">
                            <b>温馨提示：</b>当前<?php echo $model?$model['name']:'文章'; ?>已经发布,如果修改将重新进入审核
                        </div>
                        <?php endif; ?>
                        <div class="panel-post">
                            <h2 class="page-header"><?php echo $archives?'修改':'发布'; ?><?php echo $model?$model['name']:'文档'; ?></h2>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <form id="post-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                                    <?php echo token(); ?>
                                    <div class="form-group">
                                        <label for="c-channel_id" class="control-label col-xs-12 col-sm-2"><?php echo __('Channel_id'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <select id="c-channel_id" data-rule="required" class="form-control selectpicker" data-live-search="true" name="row[channel_id]">
                                                <?php echo $channelOptions; ?>
                                            </select>
                                        </div>
                                    </div>
                                    <?php if(!$model || $model->iscontribute('channel_ids')): ?>
                                    <div class="form-group" data-field="channel_ids">
                                        <label for="c-channel_id" class="control-label col-xs-12 col-sm-2"><?php echo __('Channel_ids'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <select id="c-channel_ids" data-rule="" class="form-control selectpicker" multiple data-live-search="true" name="row[channel_ids][]">
                                                <?php echo $secondChannelOptions; ?>
                                            </select>
                                        </div>
                                    </div>
                                    <?php endif; ?>
                                    <div class="form-group">
                                        <label for="c-title" class="control-label col-xs-12 col-sm-2"><?php echo __('Title'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="<?php echo htmlentities((isset($archives['title']) && ($archives['title'] !== '')?$archives['title']:'') ?? ''); ?>" data-suggestion-url="<?php echo url('cms.archives/suggestion'); ?>">
                                        </div>
                                    </div>
                                    <?php if(!$model || $model->iscontribute('image')): ?>
                                    <div class="form-group" data-field="image">
                                        <label for="c-image" class="control-label col-xs-12 col-sm-2"><?php echo __('Image'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <div class="input-group">
                                                <input id="c-image" class="form-control" name="row[image]" type="text" value="<?php echo htmlentities((isset($archives['image']) && ($archives['image'] !== '')?$archives['image']:'') ?? ''); ?>">
                                                <div class="input-group-addon no-border no-padding">
                                                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                                                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-preview-id="p-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
                                                    <span class="msg-box n-right" for="c-image"></span>
                                                </div>
                                            </div>
                                            <ul class="row list-inline plupload-preview" id="p-image"></ul>
                                        </div>
                                    </div>
                                    <?php endif; if(!$model || $model->iscontribute('images')): ?>
                                    <div class="form-group" data-field="images">
                                        <label for="c-images" class="control-label col-xs-12 col-sm-2"><?php echo __('Images'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <div class="input-group">
                                                <input id="c-images" class="form-control" name="row[images]" type="text" value="<?php echo htmlentities((isset($archives['images']) && ($archives['images'] !== '')?$archives['images']:'') ?? ''); ?>">
                                                <div class="input-group-addon no-border no-padding">
                                                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                                                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-preview-id="p-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
                                                    <span class="msg-box n-right" for="c-images"></span>
                                                </div>
                                            </div>
                                            <ul class="row list-inline plupload-preview" id="p-images"></ul>
                                        </div>
                                    </div>
                                    <?php endif; if(!$model || $model->iscontribute('tags')): ?>
                                    <div class="form-group" data-field="tags">
                                        <label for="c-tags" class="control-label col-xs-12 col-sm-2"><?php echo __('Tags'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <input id="c-tags" data-rule="" class="form-control" placeholder="多个标签请使用半角逗号分隔" data-primary-key="name" data-multiple="true" name="row[tags]" type="text" value="<?php echo htmlentities((isset($archives['tags']) && ($archives['tags'] !== '')?$archives['tags']:'') ?? ''); ?>">
                                        </div>
                                    </div>
                                    <?php endif; if(!$model || $model->iscontribute('content')): ?>
                                    <div class="form-group" data-field="content">
                                        <label for="c-content" class="control-label col-xs-12 col-sm-2"><?php echo __('Content'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <textarea id="c-content" data-rule="required" class="form-control editor" name="row[content]" rows="15"><?php echo htmlentities((isset($archives['content']) && ($archives['content'] !== '')?$archives['content']:'') ?? ''); ?></textarea>
                                        </div>
                                    </div>
                                    <?php endif; if(!$model || $model->iscontribute('price')): ?>
                                    <div class="form-group" data-field="price">
                                        <label for="c-price" class="control-label col-xs-12 col-sm-2"><?php echo __('Price'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <input id="c-price" data-rule="" class="form-control" name="row[price]" type="number" value="<?php echo (isset($archives['price']) && ($archives['price'] !== '')?$archives['price']:'0'); ?>">
                                        </div>
                                    </div>
                                    <?php endif; if(!$model || $model->iscontribute('outlink')): ?>
                                    <div class="form-group" data-field="outlink">
                                        <label for="c-outlink" class="control-label col-xs-12 col-sm-2"><?php echo __('Outlink'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <input id="c-outlink" data-rule="" class="form-control" name="row[outlink]" type="text" value="<?php echo htmlentities((isset($archives['outlink']) && ($archives['outlink'] !== '')?$archives['outlink']:'') ?? ''); ?>">
                                        </div>
                                    </div>
                                    <?php endif; if(!$model || $model->iscontribute('keywords')): ?>
                                    <div class="form-group" data-field="keywords">
                                        <label for="c-keywords" class="control-label col-xs-12 col-sm-2"><?php echo __('Keywords'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <input id="c-keywords" data-rule="" class="form-control" name="row[keywords]" type="text" value="<?php echo htmlentities((isset($archives['keywords']) && ($archives['keywords'] !== '')?$archives['keywords']:'') ?? ''); ?>">
                                        </div>
                                    </div>
                                    <?php endif; if(!$model || $model->iscontribute('description')): ?>
                                    <div class="form-group" data-field="description">
                                        <label for="c-description" class="control-label col-xs-12 col-sm-2"><?php echo __('Description'); ?></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <textarea id="c-description" cols="60" rows="5" data-rule="" class="form-control" name="row[description]"><?php echo htmlentities((isset($archives['description']) && ($archives['description'] !== '')?$archives['description']:'') ?? ''); ?></textarea>
                                        </div>
                                    </div>
                                    <?php endif; ?>
                                    <div id="extend">
                                        <?php echo $extendHtml; ?>
                                    </div>

                                    <div class="form-group normal-footer">
                                        <label class="control-label col-xs-12 col-sm-2"></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <button type="submit" class="btn btn-primary btn-embossed disabled"><?php echo __('OK'); ?></button>
                                            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

        </main>

        <footer class="footer" style="clear:both">
            <p class="copyright">Copyright&nbsp;©&nbsp;<?php echo date("Y"); ?> <?php echo htmlentities($site['name'] ?? ''); ?> All Rights Reserved <a href="https://beian.miit.gov.cn" target="_blank"><?php echo htmlentities($site['beian'] ?? ''); ?></a></p>
        </footer>

        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

    </body>

</html>
